//
//  DataBaseManager.h
//  NewNest
//
//  Created by hesiyao on 16/1/24.
//  Copyright © 2016年 www.lanou3g.com蓝鸥科技. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <sqlite3.h>
#import "UserModal.h"
@interface DataBaseManager : NSObject

{
    sqlite3 *dbPoint;
}

- (void)openDB;

- (void)closeDB;

- (void)createTable;

- (void)insertUser:(UserModal *)user;

- (NSMutableArray *)select;

- (void)updateUserWith:(UserModal *)newUser withId:(NSInteger)userId;

+(DataBaseManager *)shareInstance;

@end
